package github

import "html/template"

const IssuesURL = "https://api.github.com/search/issues"

type IssuesSearchResult struct {
	TotalCount int `json:"total_count"`
	Items      []*Issue
}

type Issue struct {
	Number    int
	HTMLURL   string        `json:"html_url"`
	Title     template.HTML //信任的字符串，不需要转义。默认string <会被转义为&lt;
	State     string
	User      *User
	Body      string // in Markdown format
	CreatedAt string `json:"created_at"`
}

type User struct {
	Login   string
	HTMLURL string `json:"html_url"`
}
